package com.assignwork.mapper;

import com.assignwork.dto.ShipAgentSearchDTO;
import com.assignwork.entity.ShipAgent;
import com.assignwork.vo.ShipAgentListVO;
import com.assignwork.vo.ShipAgentPageVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName ShipAgentMapper
 * @Description 船代Mapper
 * @Author dujianyu
 * @Date 2023/8/22 9:09
 */
public interface ShipAgentMapper extends BaseMapper<ShipAgent> {
    /**
     * 分页
     * @param dto 搜索条件
     * @param page 分页
     * @return List<ShipAgentPageVO>
     * @author dujianyu
     * @since 2023/8/22 9:22
     */
    List<ShipAgentPageVO> selectShipAgentPage(@Param("dto") ShipAgentSearchDTO dto, IPage<ShipAgentPageVO> page);

    /**
     * 列表
     * @param dto 搜索条件
     * @return List<ShipAgentPageVO>
     * @author dujianyu
     * @since 2023/8/22 9:22
     */
    List<ShipAgentListVO> selectShipAgentList(@Param("dto") ShipAgentSearchDTO dto);
}
